import request from '@/utils/request'

export function getSysUserPage(query) {
  return request({
    url: '/api/system/assignManage/skillConfig/listPage',
    method: 'post',
    data: query
  })
}

export function addSkillGroup(form) {
  return request({
    url: '/api/system/assignManage/skillConfig/save',
    method: 'post',
    data: form
  })
}

export function deleteSysUser(id) {
  return request({
    url: '/api/system/assignManage/skillConfig/delete',
    method: 'post',
    data: { 'id': id }
  })
}

export function getskillGroup() {
  return request({
    url: '/api/system/assignManage/skillGroup/list',
    method: 'post',
    data: {
      page: 1,
      pageSize: 100,
    }
  })
}

export function getdictionariesGroup() {
  return request({
    url: '/api/system/assignManage/dictionaries/getList?page=1&pageSize=100',
    method: 'get',
  })
}

export function getBySkillId(id) {
  return request({
    url: '/api/system/assignManage/skillConfig/getBySkillId',
    method: 'post',
    data: { 'id': id }
  })
}

// 价格
export function getPriceConfigPage(query) {
  return request({
    url: '/api/system/assignManage/skillPriceConfig/listPage',
    method: 'post',
    data: query
  })
}
export function addPriceConfigGroup(form) {
  return request({
    url: '/api/system/assignManage/skillPriceConfig/save',
    method: 'post',
    data: form
  })
}
export function deletePriceConfig(id) {
  return request({
    url: '/api/system/assignManage/skillPriceConfig/delete',
    method: 'post',
    data: { 'id': id }
  })
}

//技能声音
export function getskillVoicePage(query) {
  return request({
    url: '/api/system/assignManage/skillVoice/listPage',
    method: 'post',
    data: query
  })
}
export function addskillVoiceGroup(form) {
  return request({
    url: '/api/system/assignManage/skillVoice/save',
    method: 'post',
    data: form
  })
}
export function deleteskillVoice(id) {
  return request({
    url: '/api/system/assignManage/skillVoice/delete',
    method: 'post',
    data: { 'id': id }
  })
}

//资质要求
export function getwordsRemarkPage(query) {
  return request({
    url: '/api/system/assignManage/wordsRemark/listPage',
    method: 'post',
    data: query
  })
}
export function addwordsRemarkGroup(form) {
  return request({
    url: '/api/system/assignManage/wordsRemark/save',
    method: 'post',
    data: form
  })
}
export function deleteswordsRemark(id) {
  return request({
    url: '/api/system/assignManage/wordsRemark/delete',
    method: 'post',
    data: { 'id': id }
  })
}
